package com.iting.transcationdemo.service;



import com.iting.transcationdemo.bean.User;

import java.sql.SQLException;
import java.util.List;

/**
 * @author iting Nie
 * @version 1.1
 * @create 2021/11/13
 */
public interface UserService {
    int add(User user) throws SQLException;
    int delete(int id) throws SQLException;
    int update(User user) throws SQLException;
    List<User> select() throws SQLException;
    void traceTransactionalAndErr(int from,int to,int age) throws SQLException;
    void traceTransactionalAndNoErr(int from,int to,int age) throws SQLException;
    void traceWithoutTransactionalAndNoErr(int from,int to,int age) throws SQLException;
    void traceWithoutTransactionalAndErr(int from,int to,int age) throws SQLException;

	void traceTransactionalAndErrAndPrivate(int from,int to,int age) throws SQLException;
}
